package com.my.xq.domain.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "xq_proprietor")
public class Proprietor extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column(length = 40)
	private String name; // 名字

	@Column
	private int gender; // 性别

	@Column(length = 20)
	private String phone; // 电话号码

	@Column(length = 30, unique = true, nullable = false)
	private String identityCard; // 身份证号

	@Column(length = 150)
	private String synopsis; // 简介

	@Column(length = 60)
	private String record; // 学历

	@Column(length = 1000)
	private String imageUrl; // 照片

	@Transient
	private String files; // 上传身份证图片ID集合

	@Transient
	private List<String> urlList = new ArrayList<String>();

	/** 类型 */
	@Column(length = 30)
	private String priType = "业主";

	@Column(length = 40)
	private String proprietorId; // 对应的业主id

	@Column(length = 50)
	private String openid; // 对应的微信openId

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getIdentityCard() {
		return identityCard;
	}

	public void setIdentityCard(String identityCard) {
		this.identityCard = identityCard;
	}

	public String getPriType() {
		return priType;
	}

	public void setPriType(String priType) {
		this.priType = priType;
	}

	public String getProprietorId() {
		return proprietorId;
	}

	public void setProprietorId(String proprietorId) {
		this.proprietorId = proprietorId;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public String getFiles() {
		return files;
	}

	public void setFiles(String files) {
		this.files = files;
	}

	public List<String> getUrlList() {
		return urlList;
	}

	public void setUrlList(List<String> urlList) {
		this.urlList = urlList;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getSynopsis() {
		return synopsis;
	}

	public void setSynopsis(String synopsis) {
		this.synopsis = synopsis;
	}

	public String getRecord() {
		return record;
	}

	public void setRecord(String record) {
		this.record = record;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

}
